/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

import java.util.Calendar;
import java.util.GregorianCalendar;

/**
 *
 * @author andre-luiz
 */
public class StringToDate {
    
    public static Calendar convert(String date){
        String [] split;
        split = date.split("/");
        Calendar dateTemp;
        dateTemp = new GregorianCalendar(Integer.parseInt(split[2]),
                                         Integer.parseInt(split[1]),
                                         Integer.parseInt(split[0]));
        return dateTemp;
    }
    
}
